package cn.tiga.service.impl;



import cn.tiga.domain.Role;
import cn.tiga.mapper.RoleMapper;
import cn.tiga.service.IRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl implements IRoleService {

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public List loadAll() {
        return roleMapper.loadAll();
    }

    public Role loadById(Long id) {
        return roleMapper.loadById(id);
    }
}
